import request from '@/utils/request'

// 查询excel导出任务列表
export function listExcelExportTask(query) {
    return request({
        url: '/app-api/business/excel-export/list',
        method: 'get',
        params: query
    })
}

// 查询excel导出任务详细
export function getExcelExportTask(id) {
    return request({
        url: '/excel/excelExportTask/' + id,
        method: 'get'
    })
}

// 新增excel导出任务
export function addExcelExportTask(data) {
    return request({
        url: '/excel/excelExportTask',
        method: 'post',
        data: data
    })
}

// 修改excel导出任务
export function updateExcelExportTask(data) {
    return request({
        url: '/excel/excelExportTask',
        method: 'put',
        data: data
    })
}

// 删除excel导出任务
export function delExcelExportTask(id) {
    return request({
        url: '/excel/excelExportTask/' + id,
        method: 'delete'
    })
}

// 提交导出excel任务
export function sumbitTask(data) {
    return request({
        url: '/business/excel-export/submit',
        method: 'post',
        data: data
    })
}
